﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WillTransactWork.aspx.cs"
    Inherits="Flow_Info_WillTransactWork" %>

<%@ Import Namespace="TarreOA.TarreOAModels" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
    <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>
    <style type="text/css">
        <!--
        html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
        scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
        -->
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <br />
        <table width="99%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0"
            style="border-collapse: collapse;">
            <tr bgcolor="#b1d5ef">
                <td align="center" colspan="6" height="30px">
                    <b>未接收的工作</b>
                </td>
            </tr>
            <tr align="center" height="20px">
                <td>
                    流程名称
                </td>
                <td>
                    文号/说明
                </td>
                <td>
                    步骤
                </td>
                <td>
                    办理
                </td>
                <td>
                    查看
                </td>
                <td>
                    流程控制
                </td>
            </tr>
            <% 
                if (listUnTransact != null)
                {
                    foreach (FlowFront_WorkInfo fw in listUnTransact)
                    {
            %>
            <tr align="center" style="height: 20px">
                <td>
                    <%= fw.New_flow_name %>
                </td>
                <td>
                    <%=fw.New_work_name %>
                </td>
                <td style="">
                    第<font color="red"><%=fw.Prc_sort %></font>步:<%=fw.Prc_name %>
                </td>
                <td style="">
                    <a href="TRWorkIndex.aspx?WR_ID=<%=fw.New_work_id %>&ST_SO=<%=fw.Prc_sort %>&jumpType=1">办理</a>
                    <a href="WorkConsign.aspx?FS_ID=<%=fw.Prc_id %>&NW_ID=<%=fw.New_work_id %>&WS_ID=<%=fw.Prc_sort  %>">
                        委托</a>
                </td>
                <td>
                    <a href="WorkFormViewIndex.aspx?WR_ID=<%=fw.New_work_id %>&ST_SO=<%=fw.Prc_sort %>">
                        表单</a> <a href="WorkProcessShow.aspx?WR_ID=<%=fw.New_work_id %>">流程图</a> <a href="DeleteWork.aspx?WR_ID=<%=fw.New_work_id %>"
                            onclick="return confirm('此操作将删除此工作所有相关信息,并且再无法办理,您要删除吗？\r\n您可以在流程图中查看当前办理情况以确定是否删除当前工作！')">
                            删除</a>
                </td>
                <td>
                    <% if (fw.Prc_state == 2)
                       { %>
                    <a href="">转交下步</a>
                    <% } %>
                </td>
            </tr>
            <%
                    }
                }
                else
                { 
            %>
            <tr>
                <td colspan="6" align="center" height="25px">
                    暂时无工作内容
                </td>
            </tr>
            <% } %>
            <tr>
                <td align="center" colspan="6" height="30px">
                    <b>办理中的工作</b>
                </td>
            </tr>
            <%
                if (listTransacting != null)
                { 
            %>
            <% foreach (FlowFront_WorkInfo fw in listTransacting)
               { %>
            <tr align="center" style="font-size: 12px">
                <td>
                    <%= fw.New_flow_name %>
                </td>
                <td>
                    <%=fw.New_work_name %>
                </td>
                <td style="">
                    第<font color="red"><%=fw.Prc_sort %></font>步:<%=fw.Prc_name %>
                </td>
                <td style="">
                    <a href="TRWorkIndex.aspx?WR_ID=<%=fw.New_work_id %>&ST_SO=<%=fw.Prc_sort %>&jumpType=1">办理</a>
                    <a href="WorkConsign.aspx?FS_ID=<%=fw.Prc_id %>&NW_ID=<%=fw.New_work_id %>&WS_ID=<%=fw.Prc_sort  %>">
                        委托</a>
                </td>
                <td>
                    <a href="WorkFormViewIndex.aspx?WR_ID=<%=fw.New_work_id %>&ST_SO=<%=fw.Prc_sort %>">
                        表单</a> <a href="WorkProcessShow.aspx?WR_ID=<%=fw.New_work_id %>">流程图</a>
                    <a href="DeleteWork.aspx?WR_ID=<%=fw.New_work_id %>" onclick="return confirm('此操作将删除此工作所有相关信息,并且再无法办理,您要删除吗？\r\n您可以在流程图中查看当前办理情况以确定是否删除当前工作！')">
                        删除</a>
                </td>
                <td>
                    <%if (fw.Prc_state == 2)
                      { %>
                    <a href="WorkToNext.aspx?FLOW_ID=<%=fw.New_flow_id %>&ST_SO=<%=fw.Prc_sort %>&WO_ID=<%=fw.New_work_id %>&jumpType=1">
                        转交下步</a>
                    <%} %>
                </td>
            </tr>
            <% 
               }
                }
                else
                { 
            %>
            <tr>
                <td align="center" colspan="6" height="25px">
                    暂时无工作内容
                </td>
            </tr>
            <% } %>
            <!--
                <tr>
                    <td colspan="6" align="center">
                        已办结的工作
                    </td>
                </tr>
                <% 
                    if(listTransacted != null) { 
                %>
                <% foreach(FlowFront_WorkInfo fw in listTransacted) { %>
                <tr align="center" style="font-size: 12px">
                    <td>
                        <%= fw.New_flow_name %>
                    </td>
                    <td>
                        <%=fw.New_work_name %>
                    </td>
                    <td>
                        第<font color="red"><%=fw.Prc_sort %></font>步:<%=fw.Prc_name %>
                    </td>
                    <td>
                    </td>
                    <td>
                        <a href="WorkFormViewIndex.aspx?WR_ID=<%=fw.New_work_id %>">表单</a>
                        <a href="WorkProcessShow.aspx?WR_ID=<%=fw.New_work_id %>">流程图</a>
                        <a href="DeleteWork.aspx?WR_ID=<%=fw.New_work_id %>" onclick="return confirm('此操作将删除此工作所有相关信息,并且再无法办理,您要删除吗？\r\n您可以在流程图中查看当前办理情况以确定是否删除当前工作！')">
                            删除</a>
                    </td>
                    <td>
                        <%if(fw.Prc_state == 2) { %>
                        <a href="">转交下步</a>
                        <%} %>
                    </td>
                </tr>
                <% 
                    }
                } else { 
                %>
                <tr>
                    <td align="center" colspan="6">
                        暂时无工作内容
                    </td>
                </tr>
                <% } %>
                -->
        </table>
    </div>
    </form>
</body>
</html>
